package com.geek;

import com.geek.annotation.DemoConfig;
import com.geek.annotation.DemoService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainClass {
    public static void main(String[] args) {
        try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DemoConfig.class)){
            DemoService demoService = context.getBean(DemoService.class);
            demoService.outputResult();
        }
    }
}
